﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.ThrongIn.BLL;
using Com.ThrongIn.BE;
namespace ThrongIn
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {       
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["cid"] != null)
                {
                    Int64 cid = 0;
                    if (Int64.TryParse(Convert.ToString(Request.QueryString["cid"]), out cid))
                    {
                        BindHotProfileControl(cid);
                    }
                }
                else
                    BindHotProfileControl(0);
               
            }
        }

        private void BindHotProfileControl(Int64 cid)
        {
              ucProfilePerson.DataSource  = (new ProfileBLL()).GetHotProfiles(cid);
              ucProfilePerson.BindControl();
        }
    }
}
